package java1223;

public class Java05 {
    public static void main(String[] args) {

        // Java语言：循环语句：for循环、while循环、do while循环

        //1，2，3，...10

        //(1)for循环
        for (int i = 0; i <= 10; i++) {
            System.out.println(i);
        }

        //（2）while循环
        int j =1;
        while (j <= 10) {
            System.out.println(j);
            j++;
        }

        //（3）do while循环
        int k =1;
        do {
            System.out.println(k);
        } while (k <= 10);

    }
}
